<!-- 右侧基础面板模块 -->
{{if !empty($module_data['goods'])}}
    <div class="tb-detail-panel-base">
        <div >
            <div class="tb-detail-price-content">
                <!-- 商品页面基础信息面板原价顶部钩子 -->
                {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
                    <div class="plugins-tag">
                        <span>plugins_view_goods_detail_panel_original_price_top</span>
                    </div>
                {{/if}}
                {{if !empty($plugins_view_goods_detail_panel_original_price_top_data) and is_array($plugins_view_goods_detail_panel_original_price_top_data)}}
                    {{foreach $plugins_view_goods_detail_panel_original_price_top_data as $hook}}
                        {{if is_string($hook) or is_int($hook)}}
                            {{$hook|raw}}
                        {{/if}}
                    {{/foreach}}
                {{/if}}
                {{if isset($module_data['goods']['original_price']) and $module_data['goods']['original_price'] gt 0 and !empty($module_data['goods']['show_field_original_price_text'])}}
                    <!-- 原价 -->
                    {{if isset($module_data['goods']['show_field_original_price_status']) and $module_data['goods']['show_field_original_price_status'] eq 1}}
                        <div class="items goods-price goods-original-price">
                            <dt>{{$module_data.goods.show_field_original_price_text|raw}}</dt>
                            <dd>
                                <span class="goods-original-price-value am-text-grey" data-original-price="{{$module_data.goods.original_price}}">
                                    {{if !empty($module_data['goods']['show_original_price_symbol'])}}
                                        <em class="symbol">{{$module_data.goods.show_original_price_symbol}}</em>
                                    {{/if}}
                                    <b>{{$module_data.goods.original_price}}</b>
                                    {{if !empty($module_data['goods']['show_original_price_unit'])}}
                                        <em class="unit">{{$module_data.goods.show_original_price_unit}}</em>
                                    {{/if}}
                                </span>
                            </dd>
                        </div>
                    {{/if}}
                {{/if}}

                <!-- 商品页面基础信息面板售价顶部钩子 -->
                {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
                    <div class="plugins-tag">
                        <span>plugins_view_goods_detail_panel_price_top</span>
                    </div>
                {{/if}}
                {{if !empty($plugins_view_goods_detail_panel_price_top_data) and is_array($plugins_view_goods_detail_panel_price_top_data)}}
                    {{foreach $plugins_view_goods_detail_panel_price_top_data as $hook}}
                        {{if is_string($hook) or is_int($hook)}}
                            {{$hook|raw}}
                        {{/if}}
                    {{/foreach}}
                {{/if}}

                <!-- 售价 -->
                {{if isset($module_data['goods']['show_field_price_status']) and $module_data['goods']['show_field_price_status'] eq 1}}
                    <div class="items goods-price goods-sale-price">
                        <!-- <dt>{{if empty($module_data['goods']['show_field_price_text'])}}销售价{{else /}}{{$module_data.goods.show_field_price_text|raw}}{{/if}}</dt> -->
                        <dd style="margin-left: 0;">
                            {{if !empty($module_data['goods']['show_price_symbol'])}}
                                <em class="symbol">{{$module_data.goods.show_price_symbol}}</em>
                            {{/if}}
                            <b class="goods-sale-price-value" data-original-price="{{$module_data.goods.price}}">{{$module_data.goods.price}}</b>
                            {{if !empty($module_data['goods']['show_price_unit'])}}
                                <em class="unit am-text-grey">{{$module_data.goods.show_price_unit}}</em>
                            {{/if}}
                        </dd>                                 
                    </div>
                {{/if}}

                <!-- 商品页面基础信息面板售价底部钩子 -->
                {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
                    <div class="plugins-tag">
                        <span>plugins_view_goods_detail_panel_price_bottom</span>
                    </div>
                {{/if}}
                {{if !empty($plugins_view_goods_detail_panel_price_bottom_data) and is_array($plugins_view_goods_detail_panel_price_bottom_data)}}
                    {{foreach $plugins_view_goods_detail_panel_price_bottom_data as $hook}}
                        {{if is_string($hook) or is_int($hook)}}
                            {{$hook|raw}}
                        {{/if}}
                    {{/foreach}}
                {{/if}}
            </div>

            <!-- 销量 -->
            {{if isset($module_data['goods']['show_sales_number_status']) and $module_data['goods']['show_sales_number_status'] eq 1}}
                <div class="tm-indcon" style="margin: 1rem 0"><span class="tm-count" style="margin-right: 0.5rem;">{{$module_data.goods.sales_count}}</span><span class="tm-label">{{:MyLang('sales_title')}}</span></div>
            {{/if}}
        </div>

        <!-- 商品页面基础信息面板底部钩子 -->
        {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
            <div class="plugins-tag">
                <span>plugins_view_goods_detail_panel_bottom</span>
            </div>
        {{/if}}
        {{if !empty($plugins_view_goods_detail_panel_bottom_data) and is_array($plugins_view_goods_detail_panel_bottom_data)}}
            {{foreach $plugins_view_goods_detail_panel_bottom_data as $hook}}
                {{if is_string($hook) or is_int($hook)}}
                    {{$hook|raw}}
                {{/if}}
            {{/foreach}}
        {{/if}}
    </div>
{{/if}}